package ar.org.cfired.creditos;

import java.util.Date;

import org.jbpm.api.Configuration;
import org.jbpm.api.NewDeployment;

public class DeployVersion2 {
	public static void main (String args[]) {

		NewDeployment deployment = new Configuration().buildProcessEngine().getRepositoryService().createDeployment();
		deployment.addResourceFromClasspath("creditos.v2.jpdl.xml");
		deployment.addResourceFromClasspath("creditos.v2.png");
		deployment.setName("Creditos Noviembre - 2010-11-19 - v1.0.1 beta rel 26");
		deployment.setTimestamp(new Date().getTime());
		deployment.deploy(); 
		
		System.out.println("Listo!"); 
	}
}
 